note
	description : "moteur-rpg application root class"
	author		: "Adrien"
	date        : "$Date$"
	revision    : "$Revision$"

class
	APPLICATION

inherit
	ARGUMENTS

create
	make

feature {NONE} -- Initialization

	make is
			-- Run application.
			local
				filepath: STRING
				file: READER
		do
			io.put_new_line
			io.put_string ("	              i                              ff              i         i                                            %N")
			io.put_string (" EEEEE                                       OOO    f       MM   MM                     GGGG                                %N")
			io.put_string (" E                                          O   O   f       MM   MM                    G    G                               %N")
			io.put_string (" E      nnnn    gggg  i  nnnn    eee       O     O ffff     M M M M  i  nnnn   i      G         aaa   mmmm mmm    eee    sss%N")
			io.put_string (" EEEEE  n   n  g   g  i  n   n  e   e      O     O  f       M M M M  i  n   n  i      G            a  m   m   m  e   e  s   %N")
			io.put_string (" E      n   n  g   g  i  n   n  eeeee      O     O  f       M  M  M  i  n   n  i      G   GGG   aaaa  m   m   m  eeeee  ss  %N")
			io.put_string (" E      n   n  g   g  i  n   n  e          O     O  f       M  M  M  i  n   n  i      G     G  a   a  m   m   m  e        ss%N")
			io.put_string (" E      n   n  g   g  i  n   n  e   e       O   O   f       M     M  i  n   n  i       G    G  a   a  m   m   m  e   e     s%N")
			io.put_string (" EEEEE  n   n   gggg  i  n   n   eee         OOO    f       M     M  i  n   n  i        GGGG    aaaa  m   m   m   eee   sss %N")
			io.put_string ("                   g                                                                                                        %N")
			io.put_string ("                ggg                                                                                                         %N")
			io.put_new_line

			-- Ask for input the file path to read
			io.put_string ("Please, enter the path of the file :")
			io.read_line;
			--io.get_string
			-- Does the user enter string ?
			if io.last_string.count > 0 then
			--if io.last_string.is_equal("") then
            	filepath := io.last_string
            else
				filepath := "/home/sasa/fichier"
				io.put_string ("As you did not define a path of the file, a path by default was attributed. %N")
				io.put_string ("Path is : " + filepath +"%N" )
				io.put_string ("Please, press enter to continue %N %N")
				io.read_line;
			end
			--io.put_string ("the file is :" + filepath +"%N")
			create file.make(filepath)
			io.put_string ("The engine will now turn off.%N")
		end
end
